﻿@model HanGu.Entity.Group
@{
    Layout = null;
}
<div class="pageContent">
    <form method="post" action="admin/@ViewData["CurrentController"]/create"  class="pageForm" onsubmit="return validateCallback(this, navTabAjaxDone);">
    @Html.ValidationSummary(true)
    <div class="pageFormContent" layouth="56">
        <div>
            @Html.HiddenFor(model => model.ID)
            <p>
                <label>
                    组名:</label>
                @Html.TextBoxFor(model => model.GroupName)
            </p>
            <p style="width: 100%; height: 30px;">
                <label>
                    备注:</label>
                @Html.TextAreaFor(model => model.Remark, new { style = "width:99%; height:30px;" })
            </p>
        </div>
        <div class="divider" />
        <div class="pageContent" style="margin-top: 35px;">
            <div class="tabs" currentindex="0" eventtype="chick">
                <div class="tabsHeader">
                    <div class="tabsHeaderContent">
                        <ul>
                            <li><a href="admin/@ViewData["CurrentController"]/GetSelected/@Model.ID" class="j-ajax">
                                <span>已选择会员</span></a></li>
                            <li><a href="admin/@ViewData["CurrentController"]/GetSelecting/@Model.ID" class="j-ajax">
                                <span>未选择会员</span></a></li>
                        </ul>
                    </div>
                </div>
                <div class="tabsContent">
                    <div id="SelectedMember">
                    </div>
                    <div id="SelectingMember">
                    </div>
                </div>
                <div class="tabsFooter">
                    <div class="tabsFooterContent">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            提交</button></div>
                </div>
            </li>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" class="close">
                            取消</button></div>
                </div>
            </li>
        </ul>
    </div>
    </form>
</div>
<script>
    function ShowSelectedAll() {
        $("#SelectedMember").loadUrl("admin/@ViewData["CurrentController"]/GetSelected/@Model.ID?showall=true");
    }
    function ShowSelectingAll() {
        $("#SelectingMember").loadUrl("admin/@ViewData["CurrentController"]/GetSelecting/@Model.ID?showall=true");
    }
</script>